package com.iot.core.springboot;



import com.iot.core.data.entity.HtActionLog;
import com.iot.core.data.entity.HtUserLogin;
import com.iot.core.manager.htctl.HtCtlActDto;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;

import java.util.ArrayList;
import java.util.List;

@Slf4j
@Data
public class MyContext {
    private HtUserLogin su;
    private HtActionLog mylog;

    private HtCtlActDto action;
    public void setLogMemo(String msg){
        if(mylog !=null )
        {
            mylog.setMemo(msg);
        }
    }

    private Object Deleted ;
    private List<Object> Deleteds=new ArrayList<>();

    private Object Inserted;
    private List<Object> Inserteds =new ArrayList<>();

    private Object PIn;
    public  MyContext(){
        this.su=new HtUserLogin();
        this.mylog =new HtActionLog();
    }
}
